#include <stdio.h>
#include <stdlib.h>

int main(int argc, int **argv)
{
	int  i, j;
	int  line, col;
	char c;
	
	scanf("%d %c",&line ,&c);
	col = line;
	line = (line+1)/2;

	for(i = 0; i < line; i++)
	{
		if(i == 0 || i == line-1)
		{
			for(j = 0; j < col; j++)
				printf("%c", c);
		}
		else
		{
			for(j = 0; j < col; j++)
			{
				if(j == col-1 || j == 0)
					printf("%c", c);
				else
					printf(" ");
			}
		}
		printf("\n");
	}

	return 0;
}